
class CustomSpiderMiddleware(object):
    
    def process_spider_input(self,response,spider):
        
        #print "====spidermiddleware input==========="
        return None
    
    def process_spider_output(self,response,result,spider):
        #print "=====spidermiddle output============="
        return result
    
    def process_spider_exception(self,response,exception,spider):
        
        pass
